<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 100vw;
            height: 100vh;
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        img {
            width: 300px;
            height: 400px;
            transform-origin: center bottom;
            transition: all 1s;
            position: absolute;
        }

        .box:hover img:nth-child(1) {
            transform: rotate(-40deg);
        }

        .box:hover img:nth-child(2) {
            transform: rotate(-30deg);
        }

        .box:hover img:nth-child(3) {
            transform: rotate(-20deg);
        }

        .box:hover img:nth-child(4) {
            transform: rotate(-10deg);
        }

        .box:hover img:nth-child(5) {
            transform: rotate(0deg);
        }

        .box:hover img:nth-child(6) {
            transform: rotate(10deg);
        }

        .box:hover img:nth-child(7) {
            transform: rotate(20deg);
        }

        .box:hover img:nth-child(8) {
            transform: rotate(30deg);
        }
    </style>
</head>

<body>
    <div class="box">
        <img src="./img/牌J.png" alt="">
        <img src="./img/牌Q.png" alt="">
        <img src="./img/牌J.png" alt="">
        <img src="./img/牌Q.png" alt="">
        <img src="./img/牌J.png" alt="">
        <img src="./img/牌Q.png" alt="">
        <img src="./img/牌J.png" alt="">
        <img src="./img/牌Q.png" alt="">
    </div>
</body>

</html>